package com.jiangyg.mall.product.dto;

import com.jiangyg.mall.core.support.validation.constraints.IntAnyValue;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;

import javax.validation.constraints.NotNull;
import java.io.Serializable;

/**
 * 类描述：sku的图片集
 *
 * @author jiangyg
 * @date 2021-11-13
 */
@Data
@NoArgsConstructor
@EqualsAndHashCode
public class SkuImagesDTO implements Serializable {

    private static final long serialVersionUID = -2052114601094705487L;

    /**
     * 图片地址
     */
    @NotNull
    private String url;

    /**
     * 默认图[0 - 不是默认图，1 - 是默认图]
     */
    @NotNull
    @IntAnyValue({0, 1})
    private Integer isDefault;

}
